<div class="photos view">
<h2><?php  echo __('Photo');?></h2>
	<dl>
		<dt><?php echo __('Photo Id'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['photo_id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Url Photo'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['url_photo']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Url Thumb'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['url_thumb']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Button Type Rating'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['button_type_rating']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Longitude'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['longitude']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Latitude'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['latitude']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Location Latitude'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['location_latitude']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Location Longitude'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['location_longitude']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Location Text'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['location_text']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Post Time'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['post_time']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Number Click Button'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['number_click_button']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Delete Flag'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['delete_flag']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('User'); ?></dt>
		<dd>
			<?php echo $this->Html->link($photo['User']['user_id'], array('controller' => 'users', 'action' => 'view', $photo['User']['user_id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Post Model'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['post_model']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Filter Id'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['filter_id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Caption'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['caption']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Point'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['point']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Client Post Time'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['client_post_time']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Link Facebook'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['link_facebook']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Link Twitter'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['link_twitter']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Link Weibo'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['link_weibo']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Link Tumblr'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['link_tumblr']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Link Flickr'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['link_flickr']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Location Id'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['location_id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Url Id'); ?></dt>
		<dd>
			<?php echo h($photo['Photo']['url_id']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Photo'), array('action' => 'edit', $photo['Photo']['photo_id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Photo'), array('action' => 'delete', $photo['Photo']['photo_id']), null, __('Are you sure you want to delete # %s?', $photo['Photo']['photo_id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Photos'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Photo'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Comments'), array('controller' => 'comments', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Comment'), array('controller' => 'comments', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Friends'), array('controller' => 'friends', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Friend'), array('controller' => 'friends', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Popular Informations'), array('controller' => 'popular_informations', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Popular Information'), array('controller' => 'popular_informations', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Ratings'), array('controller' => 'ratings', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Rating'), array('controller' => 'ratings', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Reports'), array('controller' => 'reports', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Report'), array('controller' => 'reports', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List User Pennants'), array('controller' => 'user_pennants', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User Pennant'), array('controller' => 'user_pennants', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Comments');?></h3>
	<?php if (!empty($photo['Comment'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('User Commented Id'); ?></th>
		<th><?php echo __('Comment'); ?></th>
		<th><?php echo __('Photo Id'); ?></th>
		<th><?php echo __('Post Time'); ?></th>
		<th><?php echo __('Comment Id'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($photo['Comment'] as $comment): ?>
		<tr>
			<td><?php echo $comment['user_id'];?></td>
			<td><?php echo $comment['user_commented_id'];?></td>
			<td><?php echo $comment['comment'];?></td>
			<td><?php echo $comment['photo_id'];?></td>
			<td><?php echo $comment['post_time'];?></td>
			<td><?php echo $comment['comment_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'comments', 'action' => 'view', $comment['comment_id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'comments', 'action' => 'edit', $comment['comment_id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'comments', 'action' => 'delete', $comment['comment_id']), null, __('Are you sure you want to delete # %s?', $comment['comment_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Comment'), array('controller' => 'comments', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Friends');?></h3>
	<?php if (!empty($photo['Friend'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Friend User Id'); ?></th>
		<th><?php echo __('Friend User Name'); ?></th>
		<th><?php echo __('Photo Id'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($photo['Friend'] as $friend): ?>
		<tr>
			<td><?php echo $friend['user_id'];?></td>
			<td><?php echo $friend['friend_user_id'];?></td>
			<td><?php echo $friend['friend_user_name'];?></td>
			<td><?php echo $friend['photo_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'friends', 'action' => 'view', $friend['user_id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'friends', 'action' => 'edit', $friend['user_id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'friends', 'action' => 'delete', $friend['user_id']), null, __('Are you sure you want to delete # %s?', $friend['user_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Friend'), array('controller' => 'friends', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Popular Informations');?></h3>
	<?php if (!empty($photo['PopularInformation'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Photo Id'); ?></th>
		<th><?php echo __('Point'); ?></th>
		<th><?php echo __('Post Time'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($photo['PopularInformation'] as $popularInformation): ?>
		<tr>
			<td><?php echo $popularInformation['user_id'];?></td>
			<td><?php echo $popularInformation['photo_id'];?></td>
			<td><?php echo $popularInformation['point'];?></td>
			<td><?php echo $popularInformation['post_time'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'popular_informations', 'action' => 'view', $popularInformation['photo_id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'popular_informations', 'action' => 'edit', $popularInformation['photo_id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'popular_informations', 'action' => 'delete', $popularInformation['photo_id']), null, __('Are you sure you want to delete # %s?', $popularInformation['photo_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Popular Information'), array('controller' => 'popular_informations', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Ratings');?></h3>
	<?php if (!empty($photo['Rating'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('User Id Rating'); ?></th>
		<th><?php echo __('Photo Id'); ?></th>
		<th><?php echo __('Post Time'); ?></th>
		<th><?php echo __('Button Type Rating'); ?></th>
		<th><?php echo __('Delete Flag'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($photo['Rating'] as $rating): ?>
		<tr>
			<td><?php echo $rating['user_id'];?></td>
			<td><?php echo $rating['user_id_rating'];?></td>
			<td><?php echo $rating['photo_id'];?></td>
			<td><?php echo $rating['post_time'];?></td>
			<td><?php echo $rating['button_type_rating'];?></td>
			<td><?php echo $rating['delete_flag'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'ratings', 'action' => 'view', $rating['photo_id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'ratings', 'action' => 'edit', $rating['photo_id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'ratings', 'action' => 'delete', $rating['photo_id']), null, __('Are you sure you want to delete # %s?', $rating['photo_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Rating'), array('controller' => 'ratings', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Reports');?></h3>
	<?php if (!empty($photo['Report'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Date Created'); ?></th>
		<th><?php echo __('User Id Report'); ?></th>
		<th><?php echo __('Report Type'); ?></th>
		<th><?php echo __('Report Message'); ?></th>
		<th><?php echo __('Report Status'); ?></th>
		<th><?php echo __('User Id Reported'); ?></th>
		<th><?php echo __('User Name Report'); ?></th>
		<th><?php echo __('Date Respond'); ?></th>
		<th><?php echo __('Note Respond'); ?></th>
		<th><?php echo __('Photo'); ?></th>
		<th><?php echo __('Photo Id'); ?></th>
		<th><?php echo __('Report Id'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($photo['Report'] as $report): ?>
		<tr>
			<td><?php echo $report['date_created'];?></td>
			<td><?php echo $report['user_id_report'];?></td>
			<td><?php echo $report['report_type'];?></td>
			<td><?php echo $report['report_message'];?></td>
			<td><?php echo $report['report_status'];?></td>
			<td><?php echo $report['user_id_reported'];?></td>
			<td><?php echo $report['user_name_report'];?></td>
			<td><?php echo $report['date_respond'];?></td>
			<td><?php echo $report['note_respond'];?></td>
			<td><?php echo $report['photo'];?></td>
			<td><?php echo $report['photo_id'];?></td>
			<td><?php echo $report['report_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'reports', 'action' => 'view', $report['user_id_report'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'reports', 'action' => 'edit', $report['user_id_report'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'reports', 'action' => 'delete', $report['user_id_report']), null, __('Are you sure you want to delete # %s?', $report['user_id_report'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Report'), array('controller' => 'reports', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related User Pennants');?></h3>
	<?php if (!empty($photo['UserPennant'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Pennant Id'); ?></th>
		<th><?php echo __('Photo Id'); ?></th>
		<th><?php echo __('Unlock Time'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($photo['UserPennant'] as $userPennant): ?>
		<tr>
			<td><?php echo $userPennant['user_id'];?></td>
			<td><?php echo $userPennant['pennant_id'];?></td>
			<td><?php echo $userPennant['photo_id'];?></td>
			<td><?php echo $userPennant['unlock_time'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'user_pennants', 'action' => 'view', $userPennant['pennant_id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'user_pennants', 'action' => 'edit', $userPennant['pennant_id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'user_pennants', 'action' => 'delete', $userPennant['pennant_id']), null, __('Are you sure you want to delete # %s?', $userPennant['pennant_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New User Pennant'), array('controller' => 'user_pennants', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
